ifneq (${KERNELRELEASE},)
obj-m := hello.o
else
KERNEL_SOURCE := /opt/FriendlyARM/mini2440/linux-2.6.32.2/
PWD := $(shell pwd)

default:
	make -C ${KERNEL_SOURCE} SUBDIRS=$(PWD) modules
clean:
	rm -f *~ *.o *.ko *.mod.c *.order *.symvers
endif

